package org.zecontech.extraplus.init;

import net.minecraft.tags.ItemTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.item.Item;
import org.zecontech.extraplus.util.Helpers;

/**
 * 模组物品标签
 */
public class ModItemTagKeys {

    public static final TagKey<Item> RUBY_GEM_TAG =
            registerItemTag("gems/ruby");
    public static final TagKey<Item> AMBER_GEM_TAG =
            registerItemTag("gems/amber");
    public static final TagKey<Item> EMERALD_GEM_TAG =
            registerItemTag("gems/emerald");
    public static final TagKey<Item> SILVER_INGOT_TAG =
            registerItemTag("gems/silver");

    /**
     * 注册物品标签
     * @param name 名字
     * @return 物品标签
     */
    public static TagKey<Item> registerItemTag(String name) {
        return ItemTags.create(Helpers.identifier(name));
    }
}
